import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/first'
    },
    {
      path: '/first',
      component: (resolve) => require(['@/views/first/Index'], resolve)
    },
    {
      path: '/second',
      component: (resolve) => require(['@/views/second/Index'], resolve)
    },
    {
      path: '/third',
      component: (resolve) => require(['@/views/third/Index'], resolve)
    },
    {
      path: '/fourth',
      component: (resolve) => require(['@/views/fourth/Index'], resolve)
    }
  ]
})
